package com.ddatsh.transaction.core.model;

import java.util.List;

/**
 * 请求重定向模型，用于定义那些交易可以重新定向到某个地址，用于故障转移
 * 
 * @author ddatsh
 * @version 1.0
 */
public class RedirectRule {

	private Long id;
	// 待转移ip
	private String serverIp;
	// 待转移server
	private String serverName;
	// 转发目标地址
	private String toURL;
	// 可转发交易
	private List<TransactionDefinition> transDefs;

	public Long getId() {
		return id;
	}

	public String getServerIp() {
		return serverIp;
	}

	public String getServerName() {
		return serverName;
	}

	public String getToURL() {
		return toURL;
	}

	public List<TransactionDefinition> getTransDefs() {
		return transDefs;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public void setToURL(String toURL) {
		this.toURL = toURL;
	}

	public void setTransDefs(List<TransactionDefinition> transDefs) {
		this.transDefs = transDefs;
	}

}
